package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.system.RoleManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.List;
import java.util.Map;

/**
 * @author fk
 * @version v2.0
 * @Description: 后台角色client
 * @date 2018/9/29 9:47
 * @since v7.0.0
 */
@RestController
@RequestMapping("/client/system")
@ApiIgnore
public class RoleClientController {

    @Autowired
    private RoleManager roleManager;

    @GetMapping("/roles")
    public Map<String, List<String>> getRoleMap() {

        return roleManager.getRoleMap();
    }

}
